package com.ruoyi.service;

import com.ruoyi.domain.AdvReservbroadcast;

import java.util.List;

/**
 * Service接口
 *
 * @author ruoyi
 * @date 2024-05-27
 */
public interface IAdvReservbroadcastService
{
    /**
     * 查询
     *
     * @param advReservbroadcastId 主键
     * @return
     */
    public AdvReservbroadcast selectAdvReservbroadcastByAdvReservbroadcastId(Long advReservbroadcastId);

    /**
     * 查询列表
     *
     * @param advReservbroadcast
     * @return 集合
     */
    public List<AdvReservbroadcast> selectAdvReservbroadcastList(AdvReservbroadcast advReservbroadcast);

    /**
     * 新增
     *
     * @param advReservbroadcast
     * @return 结果
     */
    public int insertAdvReservbroadcast(AdvReservbroadcast advReservbroadcast);

    /**
     * 修改
     *
     * @param advReservbroadcast
     * @return 结果
     */
    public int updateAdvReservbroadcast(AdvReservbroadcast advReservbroadcast);

    /**
     * 批量删除
     *
     * @param advReservbroadcastIds 需要删除的主键集合
     * @return 结果
     */
    public int deleteAdvReservbroadcastByAdvReservbroadcastIds(Long[] advReservbroadcastIds);

    /**
     * 删除信息
     *
     * @param advReservbroadcastId 主键
     * @return 结果
     */
    public int deleteAdvReservbroadcastByAdvReservbroadcastId(Long advReservbroadcastId);

    /**
     * 判断是否预约了某个直播
     */
    public boolean isReservation(String advMembersId, String advBroadcastId);

    List<AdvReservbroadcast> getReservationList(String advMembersId);
}
